Displacement Map (Pro only)The Displacement Map effect distorts a layer by displacing pixels horizontally and vertically based on the color values of pixels in a second layer, called the displacement map. The type of distortion created by the Displacement Map effect can vary greatly, depending on the displacement map and options you select. ![]() Original (left), Displacement map (center) and displaced image (right) The displacement is determined from the color values of the displacement map. The color values range from 0 to 255. Each value is converted into a scale ranging from -1 to 1. The displacement amount is calculated by multiplying the converted value by the maximum displacement amount you specify. A color value of 0 produces maximum negative displacement (-1 maximum displacement). A color value of 255 produces maximum positive displacement. A color value of 128 produces no displacement. For other values, you can calculate the displacement amount, in pixels, using the following equation: Displacement amount = maximum_displacement * (2 * (color value - 128)/256) To displace an image:
|